import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/drama_home_entity.g.dart';
import 'dart:convert';
export 'package:flutter_taotaoshipin/generated/json/drama_home_entity.g.dart';

@JsonSerializable()
class DramaHomeEntity {
	@JSONField(name: "drama_id")
	int? dramaId = 0;
	@JSONField(name: "drama_name")
	String? dramaName = '';
	@JSONField(name: "book_img")
	String? bookImg = '';
	@JSONField(name: "rec_sort")
	int? recSort = 0;
	int? ctime = 0;
	@JSONField(name: "drama_from")
	int? dramaFrom = 0;
	@JSONField(name: "drama_all_ep")
	int? dramaAllEp = 0;
	@JSONField(name: "drama_update_ep")
	int? dramaUpdateEp = 0;
	@JSONField(name: "drama_desc")
	String? dramaDesc = '';
	@JSONField(name: "drama_type_name")
	String? dramaTypeName = '';

	DramaHomeEntity();

	factory DramaHomeEntity.fromJson(Map<String, dynamic> json) => $DramaHomeEntityFromJson(json);

	Map<String, dynamic> toJson() => $DramaHomeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}